package iflyer.dao;

import iflyer.model.ProductCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * mysql JPA方式
 *
 * @Author babylct
 * @Description //TODO
 * @Date 20:10 2018/7/20
 * @Param
 * @return
 **/
@Repository
public interface ProductCategoryRepository extends JpaRepository<ProductCategory, Long> {

    List<ProductCategory> findByCategoryTypeIn(List<String> categoryTypeList);

    ProductCategory findByCategoryNameEquals(String categoryName);
}
